package com.ycMc.common.bean;

/**
 * Created by libo2 on 2016/11/9.
 */
public class Response {
    private int statusCode;

    private String msg;

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static Response build(int statusCode, String msg) {
         Response response = new  Response();
        response.setStatusCode(statusCode);
        response.setMsg(msg);
        return response;
    }

    public static Response build(int statusCode) {
         Response response = new  Response();
        response.setStatusCode(statusCode);
        return response;
    }



    public static final int NOT_LOGIN = -20;


    public static final int PARAM_PARSE_ERROR = -40;


    public static final int FAILED = 500;

    public static final int SERVICE_FAILED=-60;

    public static final int KEYWORD_FAILED=-70;

    public static final int SUCCESS = 200;

    public static final int PRODUCT_NULL=22001;

    public static final int ERROR_PASSWORD=414;

    public static final int ERROR_EMAIL=419;

    public static final int ERROR_USERNAME=415;

    public static final int DuplicateKey_PHONE=416;

    public static final int DuplicateKey_EMAIL=417;

    public static final int DuplicateKey_USERNAME=418;

    public static final int ERROR_CODE=420;

    public static final int DATA_NULL=421;

    public static final int ERROR_FORMAT=422;

    public static final int LEVEL_ERROR=423;

    public static final int EMPTY_ERROR=424;




}
